﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserControl.ascx.cs" Inherits="DocTes.Administration.Users.Controls.UserControl" %>
<asp:GridView ID="GridViewUsuarios" runat="server" AllowPaging="True" PageSize="25"
    AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="UserName" 
    DataSourceID="ObjectDataSourceUsers" OnRowEditing="GridViewUsuarios_RowEditing" width="100%">
    <Columns>
        <asp:CommandField CancelText="Cancelar" DeleteText="Borrar" EditText="Editar" 
            InsertText="Insertar" NewText="Nuevo" ShowDeleteButton="True" 
            ShowEditButton="True" UpdateText="Actualizar" />
        <asp:BoundField DataField="UserName" HeaderText="Nombre" />
        <asp:BoundField DataField="Email" HeaderText="Correo" />
    </Columns>
  </asp:GridView>
<p>
    &nbsp;</p>
<asp:ObjectDataSource ID="ObjectDataSourceUsers" runat="server" 
    DeleteMethod="Borrar" SelectMethod="ListadoUsuarios" 
    TypeName="DocTes.Users.DataSourceMembershipUser">
    <DeleteParameters>
        <asp:Parameter Name="UserName" Type="String" />
    </DeleteParameters>
</asp:ObjectDataSource>